home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 49 / Amiga Format CD49 (2000-01-17)(Future Publishing)(GB)(Track 1 of 3)[!][issue 2000-02].iso / -serious- / gfxcard / cgxblanker / install < prev    next >
Text File  |  1999-11-29  |  2KB  |  111 lines

  1. ; $VER: Installation script for CGXBlanker 1.21
  2. ; © Stefan Robl
  3. ; Created with GoldED 6.1.4
  4.  
  5.  
  6. ; check if we are running under correct OS
  7. (if (< (/ (getversion) 65536) 39) 
  8.     (
  9.         (abort "Incorrect OS version (software requires OS 39 or better )!")
  10.     )
  11. )
  12.  
  13. ; error handling
  14. (onerror
  15.     (if (> @ioerr 0)
  16.         (
  17.             (message
  18.                 ("An error has occurred during installation. Please check the log file to understand the error.")
  19.             )
  20.         )
  21.     )
  22.     (exit (quiet))
  23. )
  24.  
  25. (welcome)
  26.  
  27.  
  28. (set @default-dest
  29.     (askdir
  30.         (prompt "Where do you want to have the blanker program beeing copied?")
  31.         (help "Normally, this is your System:WBStartup drawer.")
  32.         (default "Sys:WBStartup")
  33.     )
  34. )
  35.  
  36. (set @prefspath
  37.     (askdir
  38.         (prompt "Where do you want to have the prefs settings program beeing copied?")
  39.         (help "Normally, this is your System:Prefs drawer.")
  40.         (default "Sys:Prefs")
  41.     )
  42. )
  43.  
  44. (set #cputype
  45.     (askchoice
  46.         (prompt "Which CPU type(s) do you want to have supported?")
  47.         (help "Select the type of CPU you want to have supported.")
  48.         (choices
  49.             " 68020 or better"
  50.             " 68040 or better (FPU required)"
  51.         )
  52.         (default 0)
  53.     )
  54. )
  55.  
  56.  
  57.  
  58. (COMPLETE 30) ; wizard.library
  59. (copylib
  60.     (prompt "Copying wizard.library to LIBS:")
  61.     (help "The \"wizard.library\" is needed for the prefs program's GUI.\nIt is the free distributable part of Haage&Partners StormWIZARD system.")
  62.     (source "libs/wizard.library")
  63.     (dest "LIBS:")
  64.     (optional nofail force askuser)
  65.     (confirm)
  66. )
  67.  
  68.  
  69. (COMPLETE 60) ; Prefs
  70. (copyfiles 
  71.     (prompt "Copying Prefs program...")
  72.     (source "CGXBlankerPrefs")
  73.     (dest @prefspath)
  74.     (infos)
  75.     (optional nofail force askuser)
  76.     (confirm)
  77. )
  78.  
  79.  
  80. (COMPLETE 90) ; Blanker
  81. (if (= #cputype 0)
  82.     ( ; 020+
  83.         (copyfiles
  84.             (prompt "Copying 020+ program...")
  85.             (help @copy-files)
  86.             (source "CGXBlanker020+")
  87.             (newname "CGXBlanker")
  88.             (infos)
  89.             (dest @default-dest)
  90.             (optional nofail force)
  91.         )
  92.     )
  93.     ; else
  94.     ( ; 040+
  95.         (copyfiles
  96.             (prompt "Copying 040+ program...")
  97.             (help @copy-files)
  98.             (source "CGXBlanker040+")
  99.             (newname "CGXBlanker")
  100.             (infos)
  101.             (dest @default-dest)
  102.             (optional nofail force)
  103.         )
  104.     )
  105. )
  106.  
  107. (COMPLETE 100)
  108.  
  109. (exit)
  110.  
  111.